package com.design.decorate;

import lombok.extern.slf4j.Slf4j;
import org.apache.tomcat.websocket.server.WsSci;
import org.springframework.stereotype.Component;

/**
 * 装饰抽像
 *
 * @author Zee
 * @version 1.0
 * @date 2021/8/30
 */

@Slf4j
public class RedShapeDecorate extends ShapeDecorate {

    public RedShapeDecorate(Shape shape) {
        super(shape);
    }

    @Override
    public void draw() {
        shape.draw();
        log.info("draw Red");
    }
}
